package com.oig.sys.file.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;

import lombok.Data;

import java.util.Date;

@Schema
@Data
public class FileInfoVo {

    @Schema(description = "主键id")
    private Integer id;

//    @Schema(description = "应用id")
//    private Integer systemId;
//    @Schema(description = "应用名称")
//    private String systemName;

    @Schema(description = "主业务类型,01-代理 02-仓储 03-运输")
    private String businessType;

    @Schema(description = "业务单号,代理（主单号是订单号）仓储（主单号是入库单号）运输（主单号是运单号）")
    private String businessOrderId;

    /**
     * 用自定义枚举定义单据类型
     */
    @Schema(description = "关联业务单据类型")
    private String relationType;
    @Schema(description = "关联业务单据id")
    private String relationId;

    /**
     * 业务附件类型
     */
    @Schema(description = "业务附件类型")
    private String formalType;

    /**
     * 文件类型
     */
    @Schema(description = "文件类型")
    private String fileType;

    @Schema(description = "文件id")
    private String fileId;

    @Schema(description = "文件名")
    private String fileName;

    @Schema(description = "文件url")
    private String fileUrl;

    @Schema(description = "编号")
    private String fileNumber;

    @Schema(description = "是否允许客户端下载 0-否 1-是 默认1")
    private String downloadFlag;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "文件收到时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date fileRevTime;

    @Schema(description = "文件上传人ID")
    private Integer fileUploadId;
    @Schema(description = "文件上传人编码")
    private String fileUploadCode;
    @Schema(description = "文件上传人")
    private String fileUploadName;

    @Schema(description = "文件上传时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date fileUploadTime;

    @Schema(description = "创建人ID")
    private Integer createId;
    @Schema(description = "创建人编码")
    private String createCode;
    @Schema(description = "创建人")
    private String createName;
    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    @Schema(description = "最后更新人ID")
    private Integer lastUpdateId;
    @Schema(description = "最后更新人编码")
    private String lastUpdateCode;
    @Schema(description = "最后更新人")
    private String lastUpdateName;
    @Schema(description = "最后更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date lastUpdateTime;

    @Schema(description = "通用状态  04-正常 05-删除")
    private String status;

    @Schema(description = "所属租户id")
    private Integer tenantId;

    @Schema(description = "所属租户名称")
    private String tenantName;



}
